package com.coffee.order.api.sku.service;

import com.coffee.core.entity.Page;
import com.coffee.core.entity.PagerInfo;
import com.coffee.core.exception.BusinessException;
import com.coffee.order.api.sku.query.UrbanFullReductionQuery;
import com.coffee.order.api.sku.result.UrbanFullReductionResult;


import java.util.List;
import java.util.Map;
import java.util.Set;


public interface UrbanFullReductionService {

	Page<UrbanFullReductionResult> getPager(UrbanFullReductionQuery param, PagerInfo pr);
	
	Integer count(UrbanFullReductionQuery param);
	
	UrbanFullReductionResult getDetail(Integer id);
	
	List<UrbanFullReductionResult> getList(UrbanFullReductionQuery param, PagerInfo pr);
	
	List<UrbanFullReductionResult> getList(UrbanFullReductionQuery param);
	
	List<UrbanFullReductionResult> getList();

	void delete(Integer id);

	void addOrUpdate(UrbanFullReductionResult result)throws BusinessException;
	
	Map<Integer,UrbanFullReductionResult> getItemMap(Set<Integer> idSet);
	
	Map<Integer,UrbanFullReductionResult> getItemMap();
	
}